source/lua/backend/binding.d(229,9): Error: `@safe` function `luaL_call` cannot access `__gshared` data `lua_call` source/lua/backend/binding.d(233,16): Error: `@safe` function `luaL_pcall` cannot access `__gshared` data `lua_pcall` source/lua/backend/binding.d(237,16): Error: `@safe` function `lua_loadfile` cannot access `__gshared` data `luaL_loadfile` source/lua/backend/binding.d(251,16): Error: `@safe` function `luaL_checkstring` cannot access `__gshared` data `luaL_checklstring` source/lua/backend/binding.d(255,16): Error: `@safe` function `luaL_optstring` cannot access `__gshared` data `luaL_optlstring` source/lua/backend/binding.d(259,16): Error: `@safe` function `luaL_typename` cannot access `__gshared` data `lua_typename` source/lua/backend/binding.d(263,9): Error: `@safe` function `luaL_dostring` cannot access `__gshared` data `luaL_loadstring` source/lua/backend/binding.d(268,9): Error: `@safe` function `lua_pop` cannot access `__gshared` data `lua_settop` source/lua/backend/binding.d(272,9): Error: `@safe` function `lua_newtable` cannot access `__gshared` data `lua_createtable` source/lua/backend/binding.d(281,9): Error: `@safe` function `lua_pushcfunction` cannot access `__gshared` data `lua_pushcclosure` source/lua/backend/binding.d(289,9): Error: `@safe` function `lua_pushliteral` cannot access `__gshared` data `lua_pushlstring` source/lua/backend/binding.d(295,16): Error: `@safe` function `lua_tostring` cannot access `__gshared` data `lua_tolstring` source/lua/backend/binding.d(322,9): Error: `@safe` function `lua_setglobal` cannot access `__gshared` data `lua_setfield` source/lua/backend/binding.d(326,16): Error: `@safe` function `lua_getglobal` cannot access `__gshared` data `lua_getfield` source/lua/backend/binding.d(334,16): Error: `@safe` function `lua_open` cannot access `__gshared` data `luaL_newstate` source/lua/backend/binding.d(338,9): Error: `@safe` function `lua_getregistry` cannot access `__gshared` data `lua_pushvalue` source/lua/backend/binding.d(502,21): Error: `lib.ptr` cannot be used in `@safe` code, use `&lib[0]` instead source/lua/backend/binding.d(521,33): Error: `@safe` function `loadLua` cannot access `__gshared` data `lua_newstate` source/lua/backend/binding.d(521,20): Error: cast from `extern (C) lua_State* function(extern (C) void* function(void*, void*, ulong, ulong) nothrow, void*) nothrow*` to `void**` not allowed in safe code source/lua/backend/binding.d(522,33): Error: `@safe` function `loadLua` cannot access `__gshared` data `lua_close` /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.